package com.tiamo.chatgpt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 会话
 *
 * @author luozhiwei
 * @date 2023/6/5 下午11:27
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_dialogue")
public class DialogueEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("name")
    private String name;

    /**
     * 0开启1关闭
     */
    @TableField("status")
    private Integer status;

    @TableField("cr_time")
    private Date crTime;

    @TableField("up_time")
    private Date upTime;
}
